package org.example.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.example.entity.Article;

import java.util.List;

public interface ArticleMapper {



    List<Article> selectAll(Article article);

    Article selectById(Integer id);

    @Insert("insert into article(title, img, description, content, time) " +
            "VALUES (#{title},#{img},#{description},#{content},#{time})")
    void insert(Article article);

    
    void delete(Integer id);

    void update(Article article);


}
